﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SceneManager
{
    /// <summary>
    /// Provides some default materials
    /// </summary>
    public static class Materials
    {
        /// <summary>
        /// Gets the default gray material
        /// </summary>
        public static Material Default { get; private set; }
        /// <summary>
        /// Gets a material which look like heated metal
        /// </summary>
        public static Material HeatedMetal { get; private set; }
        /// <summary>
        /// Gets a material which look like green grass
        /// </summary>
        public static Material Grass { get; private set; }

        /// <summary>
        /// Preloads the default materials
        /// </summary>
        /// <param name="game">The game which will own these materials</param>
        public static void LoadMaterials(Game game)
        {
            Material.Game = game;

            Default = new Material(Color.Gray);
            HeatedMetal = new Material("Materials/Heated Metal/Texture", 0.8f, 8);
            Grass = new Material("Grass", 0, 0);
        }
    }
}
